package com.cashmanager.shared.vo;

public class CashierCompany extends ValueObject{
	private int companyId;
	private String companyName;
	private String companyContact;
	
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getCompanyContact() {
		return companyContact;
	}
	public void setCompanyContact(String companyContact) {
		this.companyContact = companyContact;
	}
	public int getCompanyId() {
		return companyId;
	}
	public void setCompanyId(int companyId) {
		this.companyId = companyId;

	}
	public static final class Fields extends Cashier.Fields{
		public final static String COMPANY_ID = "comid";		
	}
	@Override
	public String toXML() {
		StringBuilder sb = new StringBuilder();
		return sb.append(fieldToXml(Fields.COMPANY_ID,companyId)).
				append(fieldToXml(Fields.CASHIER_COM_NAME,companyName)).
				append(fieldToXml(Fields.CASHIER_COM_CONT,companyContact)).toString();
	}
}
